Sensitive Session
What does it do?
Starts or stops a sensitive session on the current chat. While a sensitive session is active, message content is not stored or logged — used for privacy compliance when collecting data like ID numbers, financial details, or medical information.
1. Syntax
<node_name>:
type: func
func_type: chat
func_id: sensitiveSession
params:
action: "start"
ttl: 60
on_complete: <next_node>
required params
typetype of the nodefunc_typehere it will be a chat functionfunc_idwhat function are we calling (sensitiveSession)params.actionthe operation to perform:"start"or"stop"on_completenext node after the operation
optional params
params.ttltime-to-live in minutes for the sensitive session (minimum0, default60). Only relevant whenactionis"start"— the session automatically expires after this duration.on_failurefallback nodedepartmentassigns the chat to a departmentagentassigns the chat to a specific agent (email address or CRM ID as defined in the Texter agents manager)
2. Examples
Start a sensitive session before collecting an ID number
mark_sensitive:
type: func
func_type: chat
func_id: sensitiveSession
params:
action: "start"
on_complete: ask_id_number
ask_id_number:
type: prompt
prompt_type: text
messages:
- "Please enter your ID number"
on_complete: verify_id
Start with a custom TTL (30 minutes)
start_sensitive:
type: func
func_type: chat
func_id: sensitiveSession
params:
action: "start"
ttl: 30
on_complete: ask_credit_card
Stop the sensitive session after collecting data
stop_sensitive:
type: func
func_type: chat
func_id: sensitiveSession
params:
action: "stop"
on_complete: continue_flow
tip
Place a "start" node before any prompt that collects sensitive data, and a "stop" node after you're done collecting it. If you don't explicitly stop the session, it will expire automatically after the TTL (default 60 minutes).